import { wxGetStorageSync } from './WxApiUtils'
import { ACCESS_TOKEN } from '../store/mutation-types'
export function createAuthHeaderFile() {
  // let token = wepy.$instance.globalData.token;
  const header = {}
  // header['Content-Type'] = 'multipart/form-data'
  // if(token == null || token == undefined || token == '')
  const token = wxGetStorageSync(ACCESS_TOKEN)
  if (token) {
    header['Authorization'] = token
  }
  return header
}
